package com.lovo.controller;

import com.lovo.dto.ClassDTO;
import com.lovo.result.ResponseResult;
import com.lovo.service.ClassService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @title
 * @author: luo
 * @date: 2020/11/22 21:49
 */
@RestController
@RequestMapping("/api/class")
@ResponseResult
public class ClassController {

    @Resource
    private ClassService classService;

    @GetMapping("")
    public List<ClassDTO> findAllClass(){
        return classService.findAllClass();
    }


}
